/**
 * 
 */
package com.neal.domain;

import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

/**
 * @author Neal
 * @version 1.0
 * @description
 */
public class Plane implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5178214431298372392L;

	/**
	 * Plane Name
	 */
	private String name;

	/**
	 * fly Date 1
	 */
	@DateTimeFormat(iso = ISO.DATE)
	private Date flyDate1;

	/**
	 * fly Date 2
	 */
	@DateTimeFormat(iso = ISO.DATE)
	private Date flyDate2;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getFlyDate1() {
		return flyDate1;
	}

	public void setFlyDate1(Date flyDate1) {
		this.flyDate1 = flyDate1;
	}

	public Date getFlyDate2() {
		return flyDate2;
	}

	public void setFlyDate2(Date flyDate2) {
		this.flyDate2 = flyDate2;
	}

	public void print(Object object) {
		if (object != null)
			System.out.println(object.toString());
		else {
			System.out.println("is null!");
		}
	}
	
	
}
